package com.why.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("users")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("username")
    private String userName;

    private String password;

    private String name;

    private String mobile;

    private String description;

    private Integer enabled;

    @TableField("account_non_expired")
    private Integer accountNonExpired;

    @TableField("credentials_non_expired")
    private Integer credentialsNonExpired;
    @TableField("account_non_locked")
    private Integer accountNonLocked;

    @TableField(exist =false)
    private List<String> permissions;


}
